package com.wyait.manage.idempotent.token.impl;

import com.wyait.manage.idempotent.enums.TokenType;
import com.wyait.manage.idempotent.token.TokenService;
import org.springframework.stereotype.Component;

/**
 * Package: com.wyait.manage.idempotent.token
 * Description：
 * Author: huangjian
 * Date:  2020/9/13 18:18
 * Modified By:
 */
@Component
class TokenInRedis extends TokenService {

    @Override
    protected void putToken(String token) {

    }

    @Override
    public synchronized boolean verifyToken(String token) {
        return true;
    }

    @Override
    public TokenType support() {
        return TokenType.REDIS;
    }
}
